/* 首页样式 */
/* 版心 */
.wrapper {
    margin: 0 auto;
    width: 1200px;
}

body {
    background-color: #f3f5f7;
}

/* 头部区域 */
.header {
    height: 100px;
    background-color: #fff;
}

.header .wrapper {
    padding-top: 29px;
    display: flex;
}

/* logo区域 */
.header .logo a {
    display: block;
    background-image: url(../images/logo.png);
    width: 195px;
    height: 41px;
    font-size: 0; /* 清除文字 */
}

/* 导航区域 */
.header .nav {
    margin-left: 102px;
    /* width: 244px; */
    height: 35px;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-right: 24px;
}

/* active类选择器，表示默认选中的a */
.nav li .active, .nav li a:hover {
    border-bottom: 2px solid #00a4ff;
}

/* .nav ul li:last-child {
    margin-right: 0;
} */

.nav li a {
    /* 转成块让padding和line-height同时生效 */
    display: block; 
    padding: 6px 8px;
    font-size: 19px;
    line-height: 27px;
}

/* 搜索区域 */
.search {
    display: flex;
    margin-left: 64px;
    padding-left: 19px;
    padding-right: 12px;
    width: 412px;
    height: 40px;
    background-color: #f3f5f7;
    border-radius: 20px;
}

.search input {
    flex: 1;
    border: 0;
    background-color: transparent;
    outline: none;  /* 去除输入框的轮廓 */
}

.search input::placeholder {
    font-size: 14px;
    color: #999;
}

.search a {
    align-self: center;
    width: 16px;
    height: 16px;
    background-image: url(../images/search.png);    
}

/* 用户区域 */
.user {
    margin-left: 32px;
    margin-top: 4px;
    margin-bottom: 7px;    
}

.user img {
    vertical-align: middle; 
}

.user span {
    margin-left: 7px;
    font-size: 16px;
    color: #666;
}

/* banner区域 */
.banner {
    height: 420px;
    background-color: #0092cb;
}

.banner .wrapper {
    display: flex;
    justify-content: space-between;
    height: 420px;
    background-image: url(../uploads/banner.png);
}

/* 左侧导航栏 */
.banner .left {
    padding: 3px 20px;
    width: 191px;
    height: 420px;
    background: rgb(0, 0, 0, 0.42);
}

.banner .left a {
    /* 块级继承父级的宽 */
    display: block;
    height: 46px;
    background: url(../images/right.png) no-repeat right center;
    font-size: 16px;
    color: #fff;
    /* 文字居中 */
    line-height: 46px;  
}

.banner .left a:hover {
    color:#00a4ff;
    background-image: url(../images/right-hover.png);    
}

/* 右侧课程表 */
.banner .right {
    margin-top: 60px;
    width: 218px;
    height: 305px;
    background-color: #209dd5;
    border-radius: 10px;
}

.banner .right h3 {
    margin-left: 14px; 
    height: 48px;
    font-size: 15px;
    font-weight: normal;
    line-height: 48px;
    color: #fff;
}

.banner .right .content {
    padding: 14px;
    width: 218px;
    height: 257px;
    background-color: #fff;
    border-radius: 10px;
}

.banner .right dl {
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.banner .right dl dt {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.banner .right dl dd {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
}

.banner .right dl dd span {
    color: #00a4ff;
}

.banner .right dl dd strong {
    font-weight: normal;
    color: #7d7d7d;
}

.banner .right a {
    display: block;
    height: 32px;
    background-color: #00a4ff;
    border-radius: 15px;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    color: #fff;
}

/* 精品推荐 */
.recommend {
    display: flex;
    margin-top: 12px;
    padding: 0 20px;
    width: 1200px;
    height: 60px;
    background-color: #fff;
    box-shadow: 0px 1px 2px 0px rgba(211, 211, 211, 0.5);
}

.recommend h3 {
    font-size: 18px;
    line-height: 60px;
    font-weight: normal;
    color: #00a4ff;
}

.recommend ul {
    flex: 1;
    display: flex;
}

.recommend ul li a {
    padding: 0 24px;
    font-size: 18px;
    line-height: 60px;
    border-right: 1px solid #e0e0e0;
}

.recommend ul li:last-child a {
    border: 0;
}

.recommend .modify {
    font-size: 18px;
    line-height: 60px;
    color: #00a4ff;
}

/* 精品课程 */
/* 公共类，可共用 */
.hd {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.hd h3 {
    font-size: 21px;
    line-height: 60px;
    font-weight: normal;
}

.hd .more {
    padding-right: 20px;
    background: url(../images/more.png) no-repeat right center;
    font-size: 14px;
    line-height: 60px;
    color: #999;
}

.bd ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bd ul li {
    margin-bottom: 14px;
    width: 228px;
    height: 271px;
    /* background-color: pink; */
}

.bd ul li .text {
    padding: 20px;
}

.bd ul li a h4 {
    margin-bottom: 13px;
    height: 40px;
    font-size: 14px;
    font-weight: normal;
}

.bd ul li .text p {
    font-size: 14px;
    color: #999;
}

.bd ul li .text span {
    color: #fa6400;
}

.bd ul li .text i {
    /* 清除倾斜 */
    font-style: normal;
}

/* 前端开发工程师 */
.hd ul {
    display: flex;
    justify-content: space-between;
}

.hd ul li {
    margin-right: 60px;
    font-size: 16px;
    line-height: 60px;
}

.hd ul li .active {
    color: #00a4ff;
}

.bd {
    display: flex;
    justify-content: space-between;
}

.bd .left{
    width: 228px;
    /* background-color: pink; */
}

.bd .right{
    width: 957px;
    /* background-color: pink; */
}

.bd .right .top {
    height: 100px;
    margin-bottom: 15px;
}

/* 人工智能开发 */
.bd .other {
    display: flex;
    justify-content: space-between;
    /* 为了让li之间有间隔，ul应指明宽度与bd一致 */
    width: 1200px;
    /* width: 80%; */
}

/* 版权 */
.footer {
    margin-top: 60px;
    background-color: #fff;
}

.footer .wrapper {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
}

.footer .left {
    margin-top: 60px;
    width: 440px;
    /* background-color: pink; */
}

.footer .left a {
    display: block;
}

.footer .left p {
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 17px;
    color: #666;
}

.footer .download {
    width: 120px;
    height: 36px;
    font-size: 16px;
    line-height: 36px;
    text-align: center;
    color: #00a4ff;
    border: 1px solid #00a4ff;
}

.footer .right {
    display: flex;
    margin-top: 60px;
    /* justify-content: space-between; */
    /* background-color: pink; */
}

.footer .right dl {
    margin-left: 130px;
}

.footer .right dl dt {
    margin-bottom: 12px;
    font-size: 16px;
}

.footer .right dl a {
    display: block;
    font-size: 14px;
    line-height: 24px;
    color: #666;
}